<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
    <!DOCTYPE html>
    <html lang="zh-CN">

    <head>
        <title>出错了了错了...
        </title>
        <link rel="stylesheet" type="text/css" href="<?php echo __ROOT__;?>/Public/bootstrap/css/bootstrap.min.css">
        <script src="<?php echo __ROOT__;?>/Public/Jquery/jquery.min.js"></script>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>

    <body>
        <div class="modal fade in" id="myModal">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button data-dismiss="modal" class="close" type="button"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title">饿，出错了出错了 </h4>
                    </div>
                    <div class="modal-body">
                        <div class="alert alert-danger" role="alert">
                            原因:未知...
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button data-dismiss="modal" class="btn btn-default" type="button">关闭</button>
                        <button class="btn btn-primary" id='success' type="button">返回主页</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
        <script src="<?php echo __ROOT__;?>/Public/bootstrap/js/bootstrap.min.js"></script>
        <script type="text/javascript">
        $(function() {
            var jumpurl = "<?php echo __APP__.'/';?>";
            $('#myModal').modal({
                keyboard: true
            });
            $('#myModal').on('hidden.bs.modal', function(e) {
                window.location.href = jumpurl;
                return false;
            });
            $('#success').click(function() {
                window.location.href = jumpurl;
                return false;
            });


        });
        </script>
    </body>

    </html>
